package cn.xn.hrms.domain.service;

import cn.xn.hrms.api.dto.res.PositionDTO;
import cn.xn.hrms.infrastructure.dataobject.PositionSelectDO;
import cn.xn.hrms.infrastructure.dataobject.PositionDO;
import cn.xn.hrms.api.dto.req.PositionReqDTO;
import com.github.pagehelper.PageInfo;

import java.util.Collection;
import java.util.List;

/**
 * @author ysz
 */
public interface PositionService {

    PageInfo<PositionDO> findAll(int pageNum, int pageSize, int departmentId, String positionName);
    List<PositionDO> all();

    PositionDTO find(int id);

    void insert(PositionReqDTO positionReqDTO);

    void deleteByIdIn(Collection<Integer> idList);

    void updateById(Integer id, PositionReqDTO positionReqDTO);

    List<PositionSelectDO> findSelect(Integer departmentId);
}
